package com.shop.game.entry;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;
import java.math.BigInteger;

@Data
@TableName(value = "exchanges")
public class Exchange extends Model<Exchange> {
    @TableId(value = "exchange_id",type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long exchangeId;
    private BigInteger userId;

    private BigDecimal price;

    private Integer quantity;

    private String remarks;
}
